.class Les/mm0$c;
.super Ljava/lang/Object;
.source "SqlDownloadCache.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/mm0;->a(Landroid/util/SparseArray;Landroid/util/SparseArray;Les/lm0;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/util/SparseArray;

.field final synthetic b:Landroid/util/SparseArray;

.field final synthetic c:Les/lm0;

.field final synthetic d:Les/mm0;


# direct methods
.method constructor <init>(Les/mm0;Landroid/util/SparseArray;Landroid/util/SparseArray;Les/lm0;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/mm0$c;->d:Les/mm0;

    iput-object p2, p0, Les/mm0$c;->a:Landroid/util/SparseArray;

    iput-object p3, p0, Les/mm0$c;->b:Landroid/util/SparseArray;

    iput-object p4, p0, Les/mm0$c;->c:Les/lm0;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 19

    move-object/from16 v1, p0

    .line 1
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0}, Les/mm0;->a(Les/mm0;)V

    .line 2
    invoke-static {}, Les/mm0;->e()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    iget-object v0, v1, Les/mm0$c;->a:Landroid/util/SparseArray;

    if-nez v0, :cond_1

    .line 4
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V

    :cond_1
    move-object v8, v0

    .line 5
    iget-object v0, v1, Les/mm0$c;->b:Landroid/util/SparseArray;

    if-nez v0, :cond_2

    .line 6
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V

    :cond_2
    move-object v9, v0

    .line 7
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->y()Lcom/ss/android/socialbase/downloader/downloader/m;

    move-result-object v0

    .line 8
    new-instance v5, Landroid/util/SparseArray;

    invoke-direct {v5}, Landroid/util/SparseArray;-><init>()V

    .line 9
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 10
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    const/4 v2, 0x0

    const/16 v10, 0x2000

    const/4 v11, 0x0

    const/4 v12, -0x3

    const/4 v13, 0x1

    .line 11
    :try_start_0
    invoke-static {}, Les/mm0;->e()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v6

    const-string v7, "SELECT * FROM downloader"

    invoke-virtual {v6, v7, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2

    .line 12
    :cond_3
    :goto_0
    invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-eqz v6, :cond_10

    .line 13
    new-instance v6, Les/zn0;

    invoke-direct {v6, v2}, Les/zn0;-><init>(Landroid/database/Cursor;)V

    .line 14
    invoke-virtual {v6}, Les/zn0;->U()Z

    move-result v7

    if-eqz v7, :cond_4

    const/4 v7, -0x5

    .line 15
    invoke-virtual {v6, v7}, Les/zn0;->b(I)V

    .line 16
    :cond_4
    invoke-virtual {v6}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v7

    if-nez v7, :cond_b

    invoke-virtual {v6}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v7

    if-eqz v7, :cond_5

    goto :goto_4

    .line 17
    :cond_5
    new-instance v7, Ljava/io/File;

    invoke-virtual {v6}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v6}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v15

    invoke-direct {v7, v14, v15}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/high16 v14, 0x20000

    .line 18
    invoke-static {v14}, Lcom/ss/android/socialbase/downloader/m/c;->a(I)Z

    move-result v14

    const-wide/16 v15, 0x0

    if-eqz v14, :cond_7

    .line 19
    invoke-virtual {v6}, Les/zn0;->X0()I

    move-result v14

    if-ne v14, v13, :cond_6

    invoke-virtual {v6}, Les/zn0;->z()J

    move-result-wide v17

    cmp-long v14, v17, v15

    if-gtz v14, :cond_6

    goto :goto_1

    .line 20
    :cond_6
    invoke-virtual {v6}, Les/zn0;->X0()I

    move-result v14

    if-eq v14, v12, :cond_a

    invoke-virtual {v6}, Les/zn0;->O()Z

    move-result v14

    if-nez v14, :cond_a

    .line 21
    invoke-virtual {v6}, Les/zn0;->N()V

    goto :goto_2

    .line 22
    :cond_7
    invoke-virtual {v6}, Les/zn0;->X0()I

    move-result v14

    if-ne v14, v13, :cond_8

    invoke-virtual {v6}, Les/zn0;->z()J

    move-result-wide v17

    cmp-long v14, v17, v15

    if-lez v14, :cond_9

    .line 23
    :cond_8
    invoke-virtual {v6}, Les/zn0;->X0()I

    move-result v14

    if-eq v14, v12, :cond_a

    invoke-virtual {v6}, Les/zn0;->O()Z

    move-result v14

    if-nez v14, :cond_a

    :cond_9
    :goto_1
    const/4 v14, 0x1

    goto :goto_3

    :cond_a
    :goto_2
    const/4 v14, 0x0

    :goto_3
    const/high16 v15, 0x2000000

    .line 24
    invoke-static {v15}, Lcom/ss/android/socialbase/downloader/m/c;->a(I)Z

    move-result v15

    if-eqz v15, :cond_c

    .line 25
    invoke-virtual {v6}, Les/zn0;->X0()I

    move-result v15

    if-ne v15, v12, :cond_c

    invoke-virtual {v7}, Ljava/io/File;->exists()Z

    move-result v7

    if-nez v7, :cond_c

    :cond_b
    :goto_4
    const/4 v14, 0x1

    :cond_c
    if-eqz v14, :cond_d

    .line 26
    invoke-virtual {v6}, Les/zn0;->N0()I

    move-result v7

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-interface {v4, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 27
    invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 28
    :cond_d
    invoke-virtual {v6}, Les/zn0;->N0()I

    move-result v7

    if-eqz v0, :cond_e

    .line 29
    invoke-virtual {v6}, Les/zn0;->Q0()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v6}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v15

    invoke-interface {v0, v14, v15}, Lcom/ss/android/socialbase/downloader/downloader/m;->a(Ljava/lang/String;Ljava/lang/String;)I

    move-result v14

    goto :goto_5

    :cond_e
    const/4 v14, 0x0

    :goto_5
    if-eq v14, v7, :cond_f

    .line 30
    invoke-virtual {v6, v14}, Les/zn0;->g(I)V

    .line 31
    invoke-virtual {v5, v7, v6}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    :cond_f
    if-eqz v8, :cond_3

    .line 32
    monitor-enter v8
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_5

    .line 33
    :try_start_1
    invoke-virtual {v6}, Les/zn0;->N0()I

    move-result v7

    invoke-virtual {v8, v7, v6}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 34
    monitor-exit v8

    goto/16 :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v8
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_5

    :cond_10
    if-eqz v2, :cond_11

    .line 35
    :try_start_3
    invoke-interface {v2}, Landroid/database/Cursor;->close()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    goto :goto_6

    :catchall_1
    move-exception v0

    move-object v2, v0

    .line 36
    invoke-virtual {v2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 37
    :cond_11
    :goto_6
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v3}, Les/mm0;->a(Les/mm0;Ljava/util/List;)V

    .line 38
    iget-object v2, v1, Les/mm0$c;->d:Les/mm0;

    move-object v6, v8

    move-object v7, v9

    invoke-static/range {v2 .. v7}, Les/mm0;->a(Les/mm0;Ljava/util/List;Ljava/util/List;Landroid/util/SparseArray;Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    if-eqz v8, :cond_17

    .line 39
    :try_start_4
    monitor-enter v8
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_3

    .line 40
    :try_start_5
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 41
    :goto_7
    invoke-virtual {v8}, Landroid/util/SparseArray;->size()I

    move-result v2

    if-ge v11, v2, :cond_14

    .line 42
    invoke-virtual {v8, v11}, Landroid/util/SparseArray;->keyAt(I)I

    move-result v2

    if-eqz v2, :cond_13

    .line 43
    invoke-virtual {v8, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/zn0;

    .line 44
    invoke-static {v10}, Lcom/ss/android/socialbase/downloader/m/c;->a(I)Z

    move-result v3

    if-eqz v3, :cond_12

    if-eqz v2, :cond_13

    .line 45
    invoke-virtual {v2}, Les/zn0;->P()Z

    move-result v3

    if-nez v3, :cond_13

    invoke-virtual {v2}, Les/zn0;->X0()I

    move-result v3

    if-eq v3, v12, :cond_13

    .line 46
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 47
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v9, v2}, Landroid/util/SparseArray;->remove(I)V

    goto :goto_8

    :cond_12
    if-eqz v2, :cond_13

    .line 48
    invoke-virtual {v2}, Les/zn0;->P()Z

    move-result v3

    if-nez v3, :cond_13

    .line 49
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 50
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v9, v2}, Landroid/util/SparseArray;->remove(I)V

    :cond_13
    :goto_8
    add-int/lit8 v11, v11, 0x1

    goto :goto_7

    .line 51
    :cond_14
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_9
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_15

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    .line 52
    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {v8, v2}, Landroid/util/SparseArray;->remove(I)V

    goto :goto_9

    .line 53
    :cond_15
    monitor-exit v8

    goto :goto_a

    :catchall_2
    move-exception v0

    monitor-exit v8
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    :try_start_6
    throw v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_3

    :catchall_3
    move-exception v0

    .line 54
    :try_start_7
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_4

    .line 55
    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_18

    goto :goto_b

    :catchall_4
    move-exception v0

    move-object v2, v0

    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_16

    .line 56
    invoke-interface {v0}, Les/lm0;->a()V

    .line 57
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v13}, Les/mm0;->a(Les/mm0;Z)Z

    .line 58
    :cond_16
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-virtual {v0, v8, v9}, Les/mm0;->a(Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    throw v2

    .line 59
    :cond_17
    :goto_a
    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_18

    .line 60
    :goto_b
    invoke-interface {v0}, Les/lm0;->a()V

    .line 61
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v13}, Les/mm0;->a(Les/mm0;Z)Z

    .line 62
    :cond_18
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-virtual {v0, v8, v9}, Les/mm0;->a(Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    goto/16 :goto_11

    :catchall_5
    move-exception v0

    .line 63
    :try_start_8
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_a

    if-eqz v2, :cond_19

    .line 64
    :try_start_9
    invoke-interface {v2}, Landroid/database/Cursor;->close()V
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_6

    goto :goto_c

    :catchall_6
    move-exception v0

    move-object v2, v0

    .line 65
    invoke-virtual {v2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 66
    :cond_19
    :goto_c
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v3}, Les/mm0;->a(Les/mm0;Ljava/util/List;)V

    .line 67
    iget-object v2, v1, Les/mm0$c;->d:Les/mm0;

    move-object v6, v8

    move-object v7, v9

    invoke-static/range {v2 .. v7}, Les/mm0;->a(Les/mm0;Ljava/util/List;Ljava/util/List;Landroid/util/SparseArray;Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    if-eqz v8, :cond_1f

    .line 68
    :try_start_a
    monitor-enter v8
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_8

    .line 69
    :try_start_b
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 70
    :goto_d
    invoke-virtual {v8}, Landroid/util/SparseArray;->size()I

    move-result v2

    if-ge v11, v2, :cond_1c

    .line 71
    invoke-virtual {v8, v11}, Landroid/util/SparseArray;->keyAt(I)I

    move-result v2

    if-eqz v2, :cond_1b

    .line 72
    invoke-virtual {v8, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/zn0;

    .line 73
    invoke-static {v10}, Lcom/ss/android/socialbase/downloader/m/c;->a(I)Z

    move-result v3

    if-eqz v3, :cond_1a

    if-eqz v2, :cond_1b

    .line 74
    invoke-virtual {v2}, Les/zn0;->P()Z

    move-result v3

    if-nez v3, :cond_1b

    invoke-virtual {v2}, Les/zn0;->X0()I

    move-result v3

    if-eq v3, v12, :cond_1b

    .line 75
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 76
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v9, v2}, Landroid/util/SparseArray;->remove(I)V

    goto :goto_e

    :cond_1a
    if-eqz v2, :cond_1b

    .line 77
    invoke-virtual {v2}, Les/zn0;->P()Z

    move-result v3

    if-nez v3, :cond_1b

    .line 78
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 79
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v9, v2}, Landroid/util/SparseArray;->remove(I)V

    :cond_1b
    :goto_e
    add-int/lit8 v11, v11, 0x1

    goto :goto_d

    .line 80
    :cond_1c
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_f
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1d

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    .line 81
    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {v8, v2}, Landroid/util/SparseArray;->remove(I)V

    goto :goto_f

    .line 82
    :cond_1d
    monitor-exit v8

    goto :goto_10

    :catchall_7
    move-exception v0

    monitor-exit v8
    :try_end_b
    .catchall {:try_start_b .. :try_end_b} :catchall_7

    :try_start_c
    throw v0
    :try_end_c
    .catchall {:try_start_c .. :try_end_c} :catchall_8

    :catchall_8
    move-exception v0

    .line 83
    :try_start_d
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_d
    .catchall {:try_start_d .. :try_end_d} :catchall_9

    .line 84
    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_18

    goto/16 :goto_b

    :catchall_9
    move-exception v0

    move-object v2, v0

    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_1e

    .line 85
    invoke-interface {v0}, Les/lm0;->a()V

    .line 86
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v13}, Les/mm0;->a(Les/mm0;Z)Z

    .line 87
    :cond_1e
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-virtual {v0, v8, v9}, Les/mm0;->a(Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    throw v2

    .line 88
    :cond_1f
    :goto_10
    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_18

    goto/16 :goto_b

    :goto_11
    return-void

    :catchall_a
    move-exception v0

    move-object v14, v0

    if-eqz v2, :cond_20

    .line 89
    :try_start_e
    invoke-interface {v2}, Landroid/database/Cursor;->close()V
    :try_end_e
    .catchall {:try_start_e .. :try_end_e} :catchall_b

    goto :goto_12

    :catchall_b
    move-exception v0

    move-object v2, v0

    .line 90
    invoke-virtual {v2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 91
    :cond_20
    :goto_12
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v3}, Les/mm0;->a(Les/mm0;Ljava/util/List;)V

    .line 92
    iget-object v2, v1, Les/mm0$c;->d:Les/mm0;

    move-object v6, v8

    move-object v7, v9

    invoke-static/range {v2 .. v7}, Les/mm0;->a(Les/mm0;Ljava/util/List;Ljava/util/List;Landroid/util/SparseArray;Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    if-eqz v8, :cond_26

    .line 93
    :try_start_f
    monitor-enter v8
    :try_end_f
    .catchall {:try_start_f .. :try_end_f} :catchall_d

    .line 94
    :try_start_10
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 95
    :goto_13
    invoke-virtual {v8}, Landroid/util/SparseArray;->size()I

    move-result v2

    if-ge v11, v2, :cond_23

    .line 96
    invoke-virtual {v8, v11}, Landroid/util/SparseArray;->keyAt(I)I

    move-result v2

    if-eqz v2, :cond_22

    .line 97
    invoke-virtual {v8, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/zn0;

    .line 98
    invoke-static {v10}, Lcom/ss/android/socialbase/downloader/m/c;->a(I)Z

    move-result v3

    if-eqz v3, :cond_21

    if-eqz v2, :cond_22

    .line 99
    invoke-virtual {v2}, Les/zn0;->P()Z

    move-result v3

    if-nez v3, :cond_22

    invoke-virtual {v2}, Les/zn0;->X0()I

    move-result v3

    if-eq v3, v12, :cond_22

    .line 100
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 101
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v9, v2}, Landroid/util/SparseArray;->remove(I)V

    goto :goto_14

    :cond_21
    if-eqz v2, :cond_22

    .line 102
    invoke-virtual {v2}, Les/zn0;->P()Z

    move-result v3

    if-nez v3, :cond_22

    .line 103
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 104
    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v9, v2}, Landroid/util/SparseArray;->remove(I)V

    :cond_22
    :goto_14
    add-int/lit8 v11, v11, 0x1

    goto :goto_13

    .line 105
    :cond_23
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_15
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_24

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    .line 106
    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {v8, v2}, Landroid/util/SparseArray;->remove(I)V

    goto :goto_15

    .line 107
    :cond_24
    monitor-exit v8

    goto :goto_16

    :catchall_c
    move-exception v0

    monitor-exit v8
    :try_end_10
    .catchall {:try_start_10 .. :try_end_10} :catchall_c

    :try_start_11
    throw v0
    :try_end_11
    .catchall {:try_start_11 .. :try_end_11} :catchall_d

    :catchall_d
    move-exception v0

    .line 108
    :try_start_12
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_12
    .catchall {:try_start_12 .. :try_end_12} :catchall_e

    .line 109
    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_27

    goto :goto_17

    :catchall_e
    move-exception v0

    move-object v2, v0

    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_25

    .line 110
    invoke-interface {v0}, Les/lm0;->a()V

    .line 111
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v13}, Les/mm0;->a(Les/mm0;Z)Z

    .line 112
    :cond_25
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-virtual {v0, v8, v9}, Les/mm0;->a(Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    throw v2

    .line 113
    :cond_26
    :goto_16
    iget-object v0, v1, Les/mm0$c;->c:Les/lm0;

    if-eqz v0, :cond_27

    .line 114
    :goto_17
    invoke-interface {v0}, Les/lm0;->a()V

    .line 115
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-static {v0, v13}, Les/mm0;->a(Les/mm0;Z)Z

    .line 116
    :cond_27
    iget-object v0, v1, Les/mm0$c;->d:Les/mm0;

    invoke-virtual {v0, v8, v9}, Les/mm0;->a(Landroid/util/SparseArray;Landroid/util/SparseArray;)V

    goto :goto_19

    :goto_18
    throw v14

    :goto_19
    goto :goto_18
.end method
